package com.itheima.mapper;

import com.itheima.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
   @Options(useGeneratedKeys = true , keyProperty = "id")
@Select("SELECT *from health_chuanzhi.t_user where username=#{username}")
   User getUserByUsername(String username) ;
}
